import request from '@/utils/request'

// 查询企业角色信息列表
export function listCrmRole(query) {
  return request({
    url: '/client/crmRole/list',
    method: 'get',
    params: query
  })
}

// 查询企业角色信息详细
export function getCrmRole(roleId) {
  return request({
    url: '/client/crmRole/' + roleId,
    method: 'get'
  })
}

// 新增企业角色信息
export function addCrmRole(data) {
  return request({
    url: '/client/crmRole',
    method: 'post',
    data: data
  })
}

// 修改企业角色信息
export function updateCrmRole(data) {
  return request({
    url: '/client/crmRole',
    method: 'put',
    data: data
  })
}

// 删除企业角色信息
export function delCrmRole(roleId) {
  return request({
    url: '/client/crmRole/' + roleId,
    method: 'delete'
  })
}

// 导出企业角色信息
export function exportCrmRole(query) {
  return request({
    url: '/client/crmRole/export',
    method: 'get',
    params: query
  })
}